from django import template

register = template.Library()

register.inclusion_tag("category_games.html")
def category_games(category):
    games = category.games_set.filter(downloaded=True)
    return {'games':games}